#!/bin/bash

tunctl
tunctl
tunctl
tunctl

brctl addbr br0
brctl addif br0 tap0
brctl addif br0 r1-eth0

brctl addbr br1
brctl addif br1 tap1
brctl addif br1 r1-eth1

brctl addbr br2
brctl addif br2 tap2
brctl addif br2 r1-eth2

brctl addbr br3
brctl addif br3 tap3
brctl addif br3 r1-eth3

brctl show

ifconfig tap0 up
ifconfig tap1 up
ifconfig tap2 up
ifconfig tap3 up

ifconfig br0 up
ifconfig br1 up 
ifconfig br2 up
ifconfig br3 up


ifconfig
